using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LitCuteAttack : EnemyAttack
{
    // Start is called before the first frame update
    void Start()
    {
        base.Start();
    }

    void OnTriggerEnter2D(Collider2D other)
    {
        if (other.gameObject.CompareTag("Player"))
        {

            other.GetComponent<PlayerBasic>().TakeDamage(damage, face, RepelTimes, RepelDistance, StiffTime);
        }
        else if (other.gameObject.CompareTag("Shield"))
        {

            other.GetComponent<shield>().TakeDamage(damage);
        }
        else  if (other.gameObject.CompareTag("Creation"))
        {

            other.GetComponent<Creation>().TakeDamage(damage);
        }
    }
    // Update is called once per frame
    void Update()
    {
        base.Update();
    }
}
